package com.ykl.demo.service.impl;

import com.ykl.base.service.AbstractJpaCompService;
import com.ykl.demo.comp.SpcStationComp;
import com.ykl.demo.entity.SpcStation;
import com.ykl.demo.model.StationRoomStats;
import com.ykl.demo.service.SpcStationService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpcStationServiceImpl  extends AbstractJpaCompService<SpcStation> implements SpcStationService {

    private SpcStationComp mmComp;

    public SpcStationServiceImpl(SpcStationComp comp) {
        super(comp);
        this.mmComp = comp;
    }

    @Override
    public List<StationRoomStats> stats(String id) {
        return mmComp.stats(id);
    }
}
